package ynu.edu.elmservlet.controller;

import ynu.edu.elmservlet.po.Food;
import ynu.edu.elmservlet.service.FoodService;
import ynu.edu.elmservlet.service.impl.FoodServiceImpl;
import jakarta.servlet.http.HttpServletRequest;


import java.util.List;
public class FoodController {
    public Object listFoodByBusinessId(HttpServletRequest request) throws Exception{
        Integer businessId = Integer.valueOf(request.getParameter("businessId"));
        FoodService service = new FoodServiceImpl();
        List<Food> list = service.listFoodByBusinessId(businessId);
        return list;
    }
}